﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web;

namespace Model
{

    [MetadataType(typeof(CustomerSource_Metadata))]
    [DisplayName("客户来源类型")]
    public partial class CustomerSource
    {
        public CustomerSource()
        {
            this.Id = Guid.NewGuid();
            this.UserId = new Guid(HttpContext.Current.User.Identity.Name);
            this.AddDate = DateTime.Now;
        }

        public class CustomerSource_Metadata
        {
            [ScaffoldColumn(false)]
            public Guid Id { get; set; }

            [ScaffoldColumn(false)]
            public Guid UserId { get; set; }

            [DisplayName("添加日期")]
            [Required]
            public object AddDate { get; set; }

            [DisplayName("客户来源类型")]
            [Required]
            public object CustomerSourceName { get; set; }



        }
    }
}
